package com.ee.chat.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ee.chat.common.entity.UserGiftBuyLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author Shane
 * @since 2019-08-23
 */
public interface UserGiftBuyLogMapper extends BaseMapper<UserGiftBuyLog> {

    /**
     * 获取用户的礼物
     * @Author Shane
     * @Date 2020/3/31 16:08
     * @param userId    用户id
     * @param type      类型，0-赠送的礼物  1-收到的礼物
     * @return
     */
    List<Map<String, Object>> getUserGifts(@Param("userId") Integer userId, @Param("type") Integer type);
}